package string;

public class Starts {
    public static void main(String[] args) {
        String str = "好好学习Java";
        boolean stars = str.startsWith("好");
        System.out.println(stars);
        boolean end = str.endsWith(".com");
        System.out.println(end);
    }
}
